
# score = int(input("请输入一个0~100的整数："))

# if 100 >= score >= 90:
#     print("你真优秀！")
# elif 60 <= score < 90:
#     print("恭喜你合格啦！")
# elif 0 <= score < 60:
#     print("革命还未成功，同志仍需努力！")
# else:
#     print("请输入正确的数字！")
    

# score = int(input("请输入一个0~100的整数："))

# if 100 >= score >= 60:    
#     if score >= 90:
#         print("你真优秀！")
#     else:
#         print("恭喜你合格啦！")
# elif 0 <= score < 60:
#     print("革命还未成功，同志仍需努力！")
# else:
#     print("请输入正确的数字！")
    

# score = int(input("请输入一个0~100的整数："))

# while 0 <= score <= 100:
#     if score >= 90:
#         print("你真优秀！")
#     elif 60 <= score < 90:
#         print("恭喜你合格啦！")
#     else:
#         print("革命还未成功，同志仍需努力！")
#     score = int(input("请输入一个0~100的整数："))
# else:
#     print("你输入不符合要求数据，系统退出！")



while True:
    score = int(input("请输入一个0~100的整数："))
    if 100 >= score >= 90:
        print("你真优秀！")
    elif 60 <= score < 90:
        print("恭喜你合格啦！")
    elif score >= 0:
        print("革命还未成功，同志仍需努力！")    
    else:
        print("你输入不符合要求数据，系统退出！")
        break

score_list = eval(input("请输入一组0~100的整数："))
for score in score_list:
    if 100 >= score >= 90:
        print(f"你得分{score}，真优秀！")
    elif 60 <= score < 90:
        print(f"你得分{score}，恭喜你合格啦！")
    elif score >= 0:
        print(f"你得分{score}，革命还未成功，同志仍需努力！")
    else:
        print(f"你输入{score}，不符合要求数据！")

while True:
    try:
        score = int(input("请输入一个0~100的整数："))
    except ValueError as e:
        print("你输入不是数据，请重新输入！")
        continue
    if 100 >= score >= 90:
        print("你真优秀！")
    elif 60 <= score < 90:
        print("恭喜你合格啦！")
    elif score >= 0:
        print("革命还未成功，同志仍需努力！")
    else:
        print("你输入不符合要求数据，系统退出！")
        break

# def evaluate_score():
#     while True:
#         try:
#             score = int(input("请输入一个0~100的整数："))
#         except ValueError as e:
#             print("你输入不是数据，请重新输入！")
#             continue
#         if score >= 90:
#             print("你真优秀！")
#         elif 60 <= score < 90:
#             print("恭喜你合格啦！")
#         elif score >= 0:
#             print("革命还未成功，同志仍需努力！")
#         else:
#             print("你输入不符合要求数据，系统退出！")
#             break

# evaluate_score()



# def evaluate_score(score=0):
#     try:
#         score = int(score)
#     except ValueError as e:
#         print("你输入不是数据！")
#         return 
#     if score >= 90:
#         return "A"
#     elif 60 <= score < 90:
#         return "B"
#     elif score >= 0:
#         return "C"
#     else:
#         print("你输入不符合要求数据！")
#         return ''

# result = evaluate_score()


def evaluate_score(*score_list):
    for score in score_list:
        if score >= 90:
            print("你得分{}，真优秀！".format(score))
        elif 60 <= score < 90:
            print("你得分{}，恭喜你合格啦！".format(score))
        elif score >= 0:
            print("你得分{}，革命还未成功，同志仍需努力！".format(score))
        else:
            print("你输入{}，不符合要求数据！".format(score))

evaluate_score(10, -1, 90, 80)

# def rect_area(width, height):
#     area = width * height
#     return area

# r_area = rect_area(80, 256)
# r_area = rect_area(width=80, height=256)
# r_area = rect_area(height=256, width=80)
